package model

import "time"

type OrderType int

const (
	Trade OrderType = iota
	Refund
)

type Document struct {
	Id int64 `json:"id" xorm:"bigint pk"`

	OrderType OrderType `json:"orderType"`
	StoreId   int64     `json:"storeId"`
	Sn        string    `json:"sn"`
	Rsn       string    `json:"rsn"`
	Doc       string    `json:"doc" xorm:"jsonb"`

	CreatedTime time.Time `json:"createdTime" xorm:"timestamp notnull created"`
	UpdatedTime time.Time `json:"updatedTime" xorm:"timestamp notnull updated"`
}
